package com.asset.dispoal.address.api;

import com.asset.dispoal.address.dto.SysAddressRequest;
import com.asset.dispoal.address.dto.SysAddressResponse;
import tech.mhuang.pacebox.springboot.protocol.Result;

import java.util.List;

/**
 * @author qr
 * @date 2022/2/16$
 */
public interface AddressService {

    /**
     * 添加
     *
     * @param request
     */
    void insert(SysAddressRequest request);

    /**
     * 修改
     *
     * @param request
     */
    void update(SysAddressRequest request);

    /**
     * 删除
     *
     * @param code
     */
    void delete(SysAddressRequest request);

    /**
     * 查询全部地址
     *
     * @param request
     * @return
     */
    Result<List<SysAddressResponse>> queryAll(SysAddressRequest request);


    Result<SysAddressResponse> queryById(String code);


}
